package yf.mall.entity;


import lombok.Setter;
import lombok.Getter;
import java.io.Serializable;
import java.util.Date;

import java.math.BigDecimal;

/**
 * 抽奖记录实体
 * 表名 lottery_record
 *
 * @author hxf
 * @email 505860922@qq.com
 * @date Thu Aug 20 11:07:03 CST 2020
 */
@Setter
@Getter
public class LotteryRecordEntity implements Serializable {
    private static final long serialVersionUID = 1L;

    //
    private Long id;
        //用户ID
    private Long userId;
        //活动ID
    private Long actId;
        //奖品ID
    private Long goodsId;
        //奖品名
    private String goodsName;
        //消耗数量
    private BigDecimal amount;
        //抽奖时间
    private Date time;
        //起止时间
    Date[] times;

    public LotteryRecordEntity(Long userId, Long actId, Long goodsId, String goodsName, BigDecimal amount, Date time) {
        this.userId = userId;
        this.actId = actId;
        this.goodsId = goodsId;
        this.goodsName = goodsName;
        this.amount = amount;
        this.time = time;
    }

    public LotteryRecordEntity(){

    }

}
